package de.tabuma.pm.externalproject.entity;

import javax.jdo.*;
import javax.jdo.annotations.*;

/**
 * @author $Author: $
 * @version $Revision: $
 * @since $Date: $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ExternalProject {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)

    Long id;
    public Long getId() {
        return id;
    }

    @Persistent
    String loginUrl;
    public String getLoginUrl() {
        return loginUrl;
    }
    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    @Persistent
    String name;
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    @Persistent
    int projectId;
    public int getProjectId() {
        return projectId;
    }
    public void setProjectId(int projectId) {
        this.projectId = projectId;
    }

    @Persistent
    Boolean post = new Boolean(Boolean.FALSE);
    public Boolean getPost() {
        if(this.post==null) {
            return new Boolean(Boolean.FALSE);
        }
        return post;
    }
    public void setPost(Boolean post) {
        this.post = post;
    }
}